package com.chaoyue.learning.service;

import com.chaoyue.learning.beans.dto.CyChooseCourseDto;
import com.chaoyue.learning.beans.dto.CyCourseTablesDto;


public interface MyCourseTablesService {
    /**
     * @param userId   用户id
     * @param courseId 课程id
     * @return com.xuecheng.learning.model.dto.XcChooseCourseDto
     * @description 添加选课
     * @author whr
     * @date 2023/5/30 20:36
     */
    CyChooseCourseDto addChooseCourse(String userId, Long courseId);

    /**
     * @param userId   用户id
     * @param courseId 课程id
     * @return XcCourseTablesDto 学习资格状态 [{"code":"702001","desc":"正常学习"},{"code":"702002","desc":"没有选课或选课后没有支付"},{"code":"702003","desc":"已过期需要申请续期或重新支付"}]
     * @description 判断学习资格
     * @author whr
     * @date 2023/5/31 20:36
     */
    CyCourseTablesDto getLearningStatus(String userId, Long courseId);

    /**
     * @description: 保存选课记录到我的课程表
     * @author whr
     * @date 2023/6/4 15:18
     * @version 1.0
     */
    boolean saveChooseCourseStatus(String choosecourseId);
}
